import { defineStore } from 'pinia'

export const useWebStore = defineStore('web', {
  state: () => {
    return {
      drawer: false,
      index: -1,
      tableData: {},
      formData: {}
    }
  },
  actions: {
    preInfo4Mod(index, row) {
      this.index = index
      this.formData = JSON.parse(JSON.stringify(row))
      this.drawer = true
    }
  }
})
